#include "tcp_sever.hpp"
#include <memory>

int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        cout<<"请输入两个参数："<<argv[0]<<"，端口号"<<endl;
        exit(1);
    }
    uint16_t port = atoi(argv[1]);
    unique_ptr<tcp_sever> svr(new tcp_sever(port));
    svr->severinit();
    svr->severstart();

    
    return 0;
}